<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <title>
        供应商
    </title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../../css/main.css" media="all">
    <script type="text/javascript" src="../../../../lib/loading/okLoading.js"></script>
    <link rel="stylesheet" href="../../../../css/bootstrap.css">
    <link rel="stylesheet" href="../../../../lib/layui/css/layui_2.5.7.css">
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
    <style>
        .layui-table-page select {
            height: 22px;
        }
    </style>
</head>

<body>
<div>
    <div class="x-nav">
        <span class="layui-breadcrumb">
            <a><cite>首页</cite></a>
            <a><cite>供应链信息</cite></a>
            <a><cite>供应链信息详情</cite></a>
        </span>
        <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right"
           href="javascript:location.replace(location.href);" title="刷新"><i class="layui-icon"
                                                                            style="line-height:30px">ဂ</i></a>
    </div>
    <div id="app" class="layui-card-body">

        <table class="table table-hover text-center">

            <tr class="success">
                <td>供应商名称</td>
                <td>供应商报价</td>
                <td>供应商 id</td>
                <td>供应商料号</td>
            </tr>
            <tr v-for="(item,index) in chainList">
                <td>{{item.supplierName}}</td>
                <td>{{item.partsOffer}}</td>
                <td>{{item.supplierId}}</td>
                <td>{{item.supplierNum}}</td>
            </tr>
        </table>

    </div>
    <br><br><br><br><br><br>
</div>
</body>


<script type="text/javascript" src="../../../../js/jquery.min.js"></script>
<script type="text/javascript" src="../../../../js/myAjax.js"></script>
<script type="text/javascript" src="../../../../js/pub.js"></script>
<script type="text/javascript" src="../../../../lib/layui/layui2.5.7.js"></script>
<script type="text/javascript" src="../../../../js/vue.min.js"></script>
<!-- <script src="lib/layui/layui.js" charset="utf-8"></script> -->
<script src="../../../../js/x-layui.js" charset="utf-8"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script>
    layui.use(['laydate', 'element', 'laypage', 'layer', 'form'], function () {
        $ = layui.jquery;//jquery
        lement = layui.element;//面包导航
        okLoading.close($);
    });
</script>

<script>
    var queryVariable = getQueryVariable('recordId');

    new Vue({
        el: "#app",
        data: {
            chainList: []
        },
        mounted() {
            let request = {
                url: 'kf/supplier/getSupplierByPartsId',
                data: {
                    userId: $userId,
                    partsId: queryVariable
                },
                method: "POST",
            };
            sendRequest(request, (res) => {
                console.log(res);
                this.chainList = res.data.SupplierByPartsIdData;
            });
        }
    })

</script>

</html>
